﻿
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data;
using System.Data.SqlClient;

/// <summary>
/// Summary description for BUS_Support
/// </summary>
public class BUS_Support
{
    DAL_Support data = new DAL_Support();
    public void Support_Insert(DTO_Support obj)
    {

        try
        {
            data.Support_Insert(obj);
        }
        catch (Exception)
        {

            throw;
        }

    }
    public void Support_UpdateByAll(string Id, DTO_Support obj)
    {

        try
        {
            data.Support_UpdateByAll(Id, obj);
        }
        catch (Exception)
        {

            throw;
        }

    }

    public void Support_UpdateBySet(string Id, string Set)
    {

        try
        {
            data.Support_UpdateBySet(Id, Set);
        }
        catch (Exception)
        {

            throw;
        }

    }
    public void Support_Delete(string Id)
    {

        try
        {
            data.Support_Delete(Id);
        }
        catch (Exception)
        {

            throw;
        }

    }

    public DataTable Support_GetByAll(int Status)
    {
        DataTable dt = new DataTable();
        try
        {
            dt = data.Support_GetByAll(Status);

        }
        catch (Exception)
        {

            throw;
        }
        return dt;
    }
    public DataTable Support_GetByTop(int top, string where, string order)
    {
        DataTable dt = new DataTable();
        try
        {
            dt = data.Support_GetByTop(top, where, order);

        }
        catch (Exception)
        {

            throw;
        }
        return dt;
    }
    public DataTable Support_GetByID(string id)
    {
        DataTable dt = new DataTable();
        try
        {
            dt = data.Support_GetByID(id);

        }
        catch (Exception)
        {

            throw;
        }
        return dt;
    }
}